﻿<!DOCTYPE html>
<html>
	<meta charset="UTF-8"/>
	<head>
		<script>
			var arr2 = new Array(10);
		
			var arr = ["尹涛",{},function(){},[1,2,3]];
			
			//console.log(arr instanceof Array);
			
			var arr3 = [1,2,3,4,5];
			arr3[5] = 100;
			
			arr3[6] = "nihao";
			
			
			//console.log( arr3 );
			/*
			for(var i=0; i<arr3.length; i++){
				console.log(arr3[i]);
			}
			
			for(var i in arr3){
				console.log(arr3[i]);
			}
			*/
			console.log( "数组的新长度:"+arr3.push(101) );
			
			arr3.unshift(102);
			
			var last = arr3.pop();
			var first = arr3.shift();
			
			console.log(last);
			
			console.log(arr3);
		</script>
	</head>
	<body>
		
	
	</body>	
</html>











